home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
- Object = "{B28ED930-882C-11D1-BD80-006097BF0C2D}#1.0#0"; "ACTIVE~1.OCX"
- Begin VB.Form Form1
- Caption = "Property Browser Control Demo"
- ClientHeight = 6075
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 9675
- Icon = "Form1.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 6075
- ScaleWidth = 9675
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "Add Custom Property"
- Height = 375
- Left = 240
- TabIndex = 32
- Top = 4920
- Width = 1695
- End
- Begin VB.TextBox TextAddLabel
- Height = 315
- Left = 240
- TabIndex = 31
- Text = "CustomProperty"
- Top = 5400
- Width = 1695
- End
- Begin VB.CommandButton CommandPages
- Caption = "Show Property Pages"
- Height = 375
- Left = 240
- TabIndex = 22
- Top = 4320
- Width = 1695
- End
- Begin VB.CommandButton CommandFilterClear
- Caption = "Clear"
- Height = 255
- Left = 1440
- TabIndex = 21
- Top = 3600
- Width = 495
- End
- Begin VB.CommandButton CommandFilterShow
- Caption = "Show"
- Height = 255
- Left = 240
- TabIndex = 20
- Top = 3600
- Width = 615
- End
- Begin ACTIVEPROPLib.ActiveProp AP
- Height = 4695
- Left = 6120
- TabIndex = 13
- Top = 1200
- Width = 3375
- _Version = 65536
- _ExtentX = 5953
- _ExtentY = 8281
- _StockProps = 233
- GridColor = -2147483633
- BeginProperty LabelFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin VB.CommandButton CommandSelf
- Caption = "Control Itself -->"
- Height = 375
- Left = 4440
- TabIndex = 7
- Top = 1920
- Width = 1455
- End
- Begin VB.CommandButton CommandCreate
- Caption = "<-- Any Object"
- Height = 375
- Left = 4440
- TabIndex = 6
- Top = 2880
- Width = 1455
- End
- Begin VB.TextBox CustomClass
- Height = 375
- Left = 2400
- TabIndex = 5
- Text = "Word.Document"
- Top = 2880
- Width = 1935
- End
- Begin VB.CommandButton CommandWeb
- Caption = "Black Hilite"
- Height = 375
- Left = 240
- TabIndex = 4
- Top = 2400
- Width = 1695
- End
- Begin VB.CommandButton CommandVB
- Caption = "Visual Basic"
- Height = 375
- Left = 240
- TabIndex = 3
- Top = 1920
- Width = 1695
- End
- Begin VB.Frame Frame1
- Caption = "Apply Example Styles"
- Height = 1695
- Left = 120
- TabIndex = 1
- Top = 1200
- Width = 1935
- Begin VB.CommandButton CommandAccess
- Caption = "Microsoft Access"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 240
- Width = 1695
- End
- End
- Begin VB.Frame Frame2
- Caption = "Object to Browse"
- Height = 2175
- Left = 2280
- TabIndex = 8
- Top = 1200
- Width = 3735
- Begin VB.CommandButton CommandNone
- Caption = "None"
- Height = 375
- Left = 2160
- TabIndex = 11
- Top = 1200
- Width = 1455
- End
- Begin VB.CommandButton CommandFlex
- Caption = "<-- Grid Control"
- Height = 375
- Left = 2160
- TabIndex = 10
- Top = 240
- Width = 1455
- End
- Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
- Height = 1335
- Left = 120
- TabIndex = 9
- Top = 240
- Width = 1935
- _ExtentX = 3413
- _ExtentY = 2355
- _Version = 393216
- End
- End
- Begin VB.Frame Frame5
- Caption = "Custom"
- Height = 1815
- Left = 120
- TabIndex = 37
- Top = 4080
- Width = 1935
- End
- Begin VB.Frame Frame3
- Caption = "Filtering"
- Height = 975
- Left = 120
- TabIndex = 17
- Top = 3000
- Width = 1935
- Begin VB.CommandButton CommandFilterHide
- Caption = "Hide"
- Height = 255
- Left = 720
- TabIndex = 19
- Top = 600
- Width = 495
- End
- Begin VB.TextBox TextFilter
- Height = 285
- Left = 120
- TabIndex = 18
- Top = 240
- Width = 1695
- End
- End
- Begin VB.TextBox Text2
- Height = 315
- Left = 3360
- MultiLine = -1 'True
- TabIndex = 15
- Text = "Form1.frx":030A
- Top = 3720
- Width = 2520
- End
- Begin VB.TextBox Text1
- Height = 315
- Left = 3360
- Locked = -1 'True
- MultiLine = -1 'True
- TabIndex = 14
- Text = "Form1.frx":031A
- Top = 4080
- Width = 2535
- End
- Begin VB.TextBox Text3
- Height = 315
- Left = 3360
- MultiLine = -1 'True
- TabIndex = 16
- Text = "Form1.frx":032A
- Top = 4440
- Width = 2535
- End
- Begin VB.TextBox TextColor
- Height = 285
- Left = 3360
- TabIndex = 34
- Text = "255"
- Top = 5520
- Width = 2055
- End
- Begin VB.Frame Frame4
- Caption = "Selected Property Details"
- Height = 2415
- Left = 2280
- TabIndex = 23
- Top = 3480
- Width = 3735
- Begin VB.CommandButton CommandColor
- Caption = ">>"
- Height = 255
- Left = 3240
- TabIndex = 35
- Top = 2040
- Width = 375
- End
- Begin VB.CommandButton CommandData
- Caption = ">>"
- Height = 255
- Left = 3240
- TabIndex = 33
- Top = 1680
- Width = 375
- End
- Begin VB.TextBox TextType
- Height = 315
- Left = 1080
- TabIndex = 27
- Text = "Type"
- Top = 1320
- Width = 2535
- End
- Begin VB.TextBox TextData
- Height = 315
- Left = 1080
- TabIndex = 29
- Text = "Data"
- Top = 1680
- Width = 2055
- End
- Begin VB.Label Label8
- Caption = "Color:"
- Height = 255
- Left = 120
- TabIndex = 36
- Top = 2040
- Width = 735
- End
- Begin VB.Label Label7
- Caption = "Data:"
- Height = 255
- Left = 120
- TabIndex = 30
- Top = 1680
- Width = 735
- End
- Begin VB.Label Label6
- Caption = "Type:"
- Height = 255
- Left = 120
- TabIndex = 28
- Top = 1320
- Width = 855
- End
- Begin VB.Label Label5
- Caption = "Value:"
- Height = 255
- Left = 120
- TabIndex = 26
- Top = 960
- Width = 1095
- End
- Begin VB.Label Label4
- Caption = "Description:"
- Height = 255
- Left = 120
- TabIndex = 25
- Top = 600
- Width = 975
- End
- Begin VB.Label Label3
- Caption = "Name:"
- Height = 255
- Left = 120
- TabIndex = 24
- Top = 240
- Width = 615
- End
- End
- Begin VB.Label Label2
- Caption = "Order a full working copy today at http://www.leadingchange.com/activex"
- Height = 255
- Left = 120
- TabIndex = 12
- Top = 720
- Width = 7335
- End
- Begin VB.Label Label1
- Caption = $"Form1.frx":0332
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 9375
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub AP_SelChange()
- Text1 = AP.CurrentDocumentation
- Text2 = AP.CurrentProperty
- Text3 = AP.CurrentValue
- TextType = AP.CurrentPropertyType
- TextData = AP.CurrentPropertyData
- TextColor = AP.CurrentLabelColor
- End Sub
- Private Sub Command2_Click()
- AP.FilterMode = FilterShowOnly
- AP.FilterItems = 1
- End Sub
- Private Sub Command1_Click()
- AP.AddProperty TextAddLabel.Text, "", StyleEdit
- End Sub
- Private Sub CommandAccess_Click()
- AP.LabelBackColor = vb3DFace
- AP.ValueBackColor = vbWindowBackground
- AP.SelectedBackColor = vb3DFace
- AP.SelectedForeColor = vbWindowText
- AP.GridColor = vb3DFace
- AP.BackColor = vb3DFace
- AP.ForeColor = vbWindowText
- AP.Appearance = AppearanceFlat
- AP.HoverMode = False
- AP.DotsAfterLabels = True
- AP.SpacesInLabels = True
- End Sub
- Private Sub CommandColor_Click()
- AP.CurrentLabelColor = TextColor
- End Sub
- Private Sub CommandCreate_Click()
- On Error GoTo Catch
- Form1.MousePointer = vbHourglass
- Set AP.LinkObject = CreateObject(CustomClass)
- Form1.MousePointer = vbDefault
- Exit Sub
- Catch:
- MsgBox "Object not found.", vbInformation, "Property Browser Demo"
- Form1.MousePointer = vbDefault
- End Sub
- Private Sub CommandData_Click()
- AP.CurrentPropertyData = TextData
- End Sub
- Private Sub CommandFilterClear_Click()
- AP.FilterMode = FilterNone
- End Sub
- Private Sub CommandFilterHide_Click()
- AP.FilterMode = FilterHideOnly
- AP.FilterItems = TextFilter
- End Sub
- Private Sub CommandFilterShow_Click()
- AP.FilterMode = FilterShowOnly
- AP.FilterItems = TextFilter
- End Sub
- Private Sub CommandFlex_Click()
- Set AP.LinkObject = MSFlexGrid1.Object
- End Sub
- Private Sub CommandNone_Click()
- Set AP.LinkObject = Nothing
- End Sub
- Private Sub CommandPages_Click()
- AP.ShowPropertyPages
- End Sub
- Private Sub CommandSelf_Click()
- Set AP.LinkObject = AP.Object
- End Sub
- Private Sub CommandVB_Click()
- AP.LabelBackColor = vbWindowBackground
- AP.SelectedBackColor = vbHighlight
- AP.SelectedForeColor = vbHighlightText
- AP.ValueBackColor = vbWindowBackground
- AP.GridColor = vb3DFace
- AP.ForeColor = vbWindowText
- AP.BackColor = vbWindowBackground
- AP.Appearance = Appearance3D
- AP.HoverMode = False
- AP.DotsAfterLabels = False
- AP.SpacesInLabels = False
- End Sub
- Private Sub CommandWeb_Click()
- AP.Appearance = AppearanceFlat
- AP.HoverMode = True
- AP.SelectedForeColor = RGB(255, 255, 255)
- AP.ForeColor = RGB(192, 192, 192)
- AP.BackColor = RGB(0, 0, 0)
- AP.GridColor = RGB(0, 0, 0)
- AP.ValueBackColor = RGB(0, 0, 0)
- AP.LabelBackColor = RGB(0, 0, 0)
- AP.SelectedBackColor = RGB(0, 0, 0)
- AP.DotsAfterLabels = True
- AP.SpacesInLabels = True
- End Sub
- Private Sub Form_Resize()
- AP.Width = (Form1.Width - AP.Left - 250)
- AP.Height = (Form1.Height - AP.Top - 500)
- End Sub
- Private Sub Text2_Change()
- AP.CurrentProperty = Text2.Text
- End Sub
- Private Sub Text3_Change()
- AP.CurrentValue = Text3.Text
- End Sub
- Private Sub Text3_KeyUp(KeyCode As Integer, Shift As Integer)
- AP.CurrentValue = Text3.Text
- End Sub
-